#include<stdio.h>
float cal_ave(int arr[10],int*p1,int*p2,int sz)
{
	float ret = 0;
	float flag = arr[0];
	for (int i = 0; i < sz; i++)
	{
		if (flag < arr[i])
			flag = arr[i];
	}
	*p1 = flag;
	for (int i = 0; i < sz; i++)
	{
		if (flag > arr[i])
			flag = arr[i];
	}
	*p2 = flag;
	flag = 0;
	for (int i = 0; i < sz; i++)
		flag += arr[i];
	ret = flag / sz;
	return ret;
}
int main()
{
	int arr[10] = { 60,65,59,78,98,100,64,61,74,79 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int max = 0;
	int min = 0;
	float ave = cal_ave(arr,&max,&min,sz);
	printf("%d %d %.1f", max, min, ave);
	return 0;
}